<script>
import { storage } from './utils/storage'
export default {
  onLaunch: function () {
    const token = storage.get('token')
    if (!token) {
      uni.navigateTo({
        url: '/pages/register/register',
      })
    }
    console.log(token)
    console.log('App Launch')
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  },
}
</script>

<style>
/*每个页面公共css */
uni-page-body,
#app {
  height: 100%;
}
</style>
